﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ImbaTracker.Models.Issue>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Id:</div>
        <div class="display-field"><%: Model.Id %></div>
        <hr/>
        <div class="display-label">Project:</div>
        <div class="display-field"><%: ImbaTracker.Content.Helper.getProject(Model.ProjectId).Name %></div>
        <hr/>
        <div class="display-label">Implementer:</div>
        <div class="display-field"><%: ImbaTracker.Content.Helper.getUserName(Model.ImplementerId)%></div>
        <hr/>
        <div class="display-label">Brief:</div>
        <div class="display-field"><%: Model.Brief %></div>
        <hr/>
        <div class="display-label">Description:</div>
        <div class="display-field"><%: Model.Description %></div>
        <hr/>
        <div class="display-label">Status:</div>
        <div class="display-field"><%: ImbaTracker.Content.Helper.getStatus(Model.StatusId).Name%></div>
        <hr/>
        <div class="display-label">Priority:</div>
        <div class="display-field"><%: Model.Priority %></div>
        <hr/>
        <div class="display-label">StartDate:</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.StartDate).Replace(" 0:00", "")%></div>
        <hr/>
        <div class="display-label">PreferredEndDate:</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.PreferredEndDate).Replace(" 0:00", "")%></div>
        <hr/>
        <div class="display-label">CriticalEndDate:</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.CriticalEndDate).Replace(" 0:00", "")%></div>
        <hr/>
        <div class="display-label">ParentId:</div>
        <div class="display-field"><%: Model.ParentId %></div>
        <hr/>
        <div class="display-label">Assigner:</div>
        <div class="display-field"><%: ImbaTracker.Content.Helper.getUserName(Model.AssignerId)%></div>
        
    </fieldset>
    <p>

        <%: Html.ActionLink("Edit", "Edit", new { id=Model.Id }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

